﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace Ponei.Scenes
{
    class Main_Menu
    {
        Texture2D background;

        public Main_Menu(GameWindow Window, ContentManager Content)
        {
            this.background = Content.Load<Texture2D>("fundo_menu");
        }

        public void Update(GameTime gameTime, KeyboardState keyboard, KeyboardState old_keyboard)
        {
            if (keyboard.IsKeyDown(Keys.Enter))
            {
                Game1.actual_scene = Game1.GAME_SCENES.MAIN_GAME;
            }
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(this.background, new Rectangle(0, 0, background.Width, background.Height), Color.White);
        }

    }
}
